<template>

<div>
  <el-button type="text" @click="dialogVisible = true"
    >click to open the Dialog</el-button
  >
    <el-dialog
    v-model="dialogVisible"
    title="Tips"
    width="30%"
  >
    <el-time-picker v-model="value1" type="date" placeholder="Pick a day"/>
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="dialogVisible = false">Cancel</el-button>
        <el-button type="primary" @click="dialogVisible = false"
          >Confirm</el-button
        >
      </span>
    </template>
  </el-dialog>
</div>
</template>

<script setup>
import { ref } from 'vue'

const dialogVisible = ref(false)
const value1 = ref('')

</script>

<style>

</style>
